package com.key.mapper;

import com.key.entity.Employee;

import java.util.List;

public interface EmployeeMapper {
    Employee findEmployeeByUserId(Integer userId);


    //显示员工信息
    List<Employee> findEmployee();

    //增加员工
    int addEmployee(Employee employee);

    //删除员工
    int deleteEmployee(int employeeId);

    //根据工号查询员工信息
    List<Employee> findEmployeeById(int employeeId);

    //修改员工信息
    int updateEmployee(Employee employee);


	/**
     * 根据员工名字查员工id
     * @author wei
     * @param employeeName
     * @return
     */
    Integer selectEmpIdByEmpName(String employeeName);
}
